
#ifndef  FRAME_CHANNELHANDLERADAPTER_H
#define  FRAME_CHANNELHANDLERADAPTER_H

#include <cstddef>
#include "Interface.h" // for IChannelHandlerAdapter

namespace frame {

class IChannel;

class ChannelHandlerAdapter : public IChannelHandlerAdapter{
public:
    ~ChannelHandlerAdapter() override ;

    void connected(IChannel::Ptr channel) override ;
    void connectFailed(IChannel::Ptr channel, int error) override;

    void disconnected(IChannel::Ptr channel, int error) override ;

    void read(IChannel::Ptr channel, const char * buf,  std::size_t size) override ;
    void readException(IChannel::Ptr channel, int error) override ;

    void writed(IChannel::Ptr channel, std::size_t size) override ;
    void writeException(IChannel::Ptr channel, int error) override ;
};

} //end of namespace frame

#endif   /* FRAME_CHANNELHANDLERADAPTER_H */
